class Login {
  int channel_id = -1;
  String phone = '';
  String token = '';

  Login(
      {this.channel_id=-1,
        this.phone = '',
        this.token=''});

  Login.fromJson(Map<String, dynamic> json) {
    if(json['channel_id'] != null){
      channel_id = json['channel_id'];
    }
    phone = json['phone'];
    token = json['token'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['channel_id'] = this.channel_id;
    data['phone'] = this.phone;
    data['token'] = this.token;
    return data;
  }
}